
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Employee;
import cn.edu.scau.cmi.hombio.domain.Pigsty;
import cn.edu.scau.cmi.hombio.domain.Prevention;
import cn.edu.scau.cmi.hombio.domain.Task;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Prevention entities
 * 
 */
public interface PreventionService {

	/**
	* Save an existing Prevention entity
	* 
	 */
	public void savePrevention(Prevention prevention);

	/**
	* Delete an existing Employee entity
	* 
	 */
	public Prevention deletePreventionEmployee(Integer prevention_id, Integer related_employee_id);

	/**
	* Save an existing Pigsty entity
	* 
	 */
	public Prevention savePreventionPigsty(Integer id, Pigsty related_pigsty);

	/**
	 */
	public Prevention findPreventionByPrimaryKey(Integer id_1);

	/**
	* Delete an existing Task entity
	* 
	 */
	public Prevention deletePreventionTask(Integer prevention_id_1, Integer related_task_id);

	/**
	* Delete an existing Pigsty entity
	* 
	 */
	public Prevention deletePreventionPigsty(Integer prevention_id_2, Integer related_pigsty_id);

	/**
	* Save an existing Task entity
	* 
	 */
	public Prevention savePreventionTask(Integer id_2, Task related_task);

	/**
	* Delete an existing Prevention entity
	* 
	 */
	public void deletePrevention(Prevention prevention_1);

	/**
	* Return all Prevention entity
	* 
	 */
	public List<Prevention> findAllPreventions(Integer startResult, Integer maxRows);

	/**
	* Load an existing Prevention entity
	* 
	 */
	public Set<Prevention> loadPreventions();

	/**
	* Return a count of all Prevention entity
	* 
	 */
	public Integer countPreventions();

	/**
	* Save an existing Employee entity
	* 
	 */
	public Prevention savePreventionEmployee(Integer id_3, Employee related_employee);
}